package dfbz.封装优化;

public class Test03 {
    public static void main(String[] args) {
        animal dog=new animal("小狗",2,"母狗");
        animal cat=new animal("小猫",2,"母猫");
        dog.printMessage();
        cat.printMessage();
    }
}
